package com.baishui.context.support;

import com.baishui.core.Resource;
import com.baishui.core.io.ClassPathResource;

public class ClassPathXmlApplicationContext extends AbstractApplicationContext {


	public ClassPathXmlApplicationContext(String configFile) {
		super(configFile);
	}

	/**
	 * V2-2-2 模版方法的实现
	 * @param path
	 * @return
	 */
	protected Resource getResourceByPath(String path) {
		return new ClassPathResource(path,this.getBeanClassLoader());
	}

}
